package com.springcloud.eureka.client.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @Desc:
 * @Date: 2020-06-25
 * @Version:v1.0
 */
@Service
public class HelloService {

    @Value("${server.port}")
    private String port;

    public String sayHello(String name) {
        return "hello," + name + ", i am from server:" + port;
    }
}
